<?php
/*
	@ here we just want a simple function to track errors at the end of our processing
		basically its a sort of hack using .htaccess to catch any error
		including parse errors, which otherwise cannot be captured.
*/
register_shutdown_function(function() {
	$error = error_get_last();
	if($error !== NULL){
		ob_clean();
		echo "error: in \"{$error['file']}\" on line {$error['line']} - {$error['message']}";
	}
});
?>